
<include file="Public/min-header"/>

<!--物流配置 css -start-->
<style>
    ul.group-list {
        width: 96%;min-width: 1000px; margin: auto 5px;list-style: disc outside none;
    }
    ul.group-list li {
        white-space: nowrap;float: left;
        width: 150px; height: 25px;
        padding: 3px 5px;list-style-type: none;
        list-style-position: outside;border: 0px;margin: 0px;
    }
</style>
<!--物流配置 css -end-->


<div class="wrapper">
    <include file="Public/breadcrumb"/>
    <section class="content">
        <!-- Main content -->
        <div class="container-fluid">
            <div class="pull-right">
        
                <a href="{:U('Pint/pintList')}" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>
                <a onclick="get_help(this)" id="get_help" data-url="http://www.vyxjj.com?/Doc/Indexbbc/article/id/1072/developer/user.html" class="btn btn-default" href="javascript:;"><i class="fa fa-question-circle"></i> 帮助</a>                
            </div>
            <div class="panel panel-default">

                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-list"></i>商品详情</h3>
                </div>
                <div class="panel-body">
                    <ul class="nav nav-tabs">
                        <li class="active"><a href="#tab_tongyong" data-toggle="tab">通用信息</a></li>
                    </ul>
                    <!--表单数据-->
                    <form method="post" id="addEditGoodsForm">
                    <!--通用信息-->
                    <div class="tab-content">
                                       	  
                        <div class="tab-pane active" id="tab_tongyong">
                          <table class="table table-bordered">
                              <tr>
                                <th>拼团信息</th>
                                <td>拼团id</td>
                                <td>拼团人数</td>
                                <td>开始时间</td>
                                <td>剩余时间</td>
                                <td>结束时间</td>
                                <td>状态</td>
                              </tr>
                              <tr>
                                <th></th>
                                <td>{$pint['pint_id']}</td>
                                <td>{$pint['pint_user_num_now']}/{$pint['pint_user_num']}</td>
                                <td><?php echo date("y-m-d/H:i:s",$pint['pint_star_time']); ?></td>
                                <td>
                                <?php

                                  if(time()<$pint['pint_stop_time']){
                                    $nums = $pint['pint_stop_time']-time();
                                    $day = floor($num/3600/24);
                                    $num = $nums-($day*3600*24);
                                    $hour = floor($num/3600);
                                    $minute = floor(($num-3600*$hour)/60);
                                    $second = floor((($num-3600*$hour)-60*$minute)%60);
                                    echo $day.'天,'.$hour.':'.$minute.':'.$second;
                                  }else{
                                    echo '0秒';
                                  }
                                  ?></td>
                                <td><?php echo date("y-m-d/H:i:s",$pint['pint_stop_time']); ?></td>
                                <td><?php echo $pint_stus[$pint['pint_status']]; ?></td>
                              </tr>
                              <tr>
                                <th>商品信息</th>
                                <td>商品id</td>
                                <td>商品名</td>
                                <td>图片</td>
                                <td>团购价</td>
                                <td>单卖价</td>
                                <td>团长优惠</td>
                              </tr>
                              <tr>
                                <th></th>
                                <td>{$goods['goods_id']}</td>
                                <td>{$goods['goods_name']}</td>
                                <td><img src="{$goods['original_img']}" style="width:100px;height:60px;"></td>
                                <td>{$goods['pt_price']}</td>
                                <td>{$goods['shop_price']}</td>
                                <td>{$goods['pt_tzyh']}</td>
                              </tr>
                              
                              <tr>
                                <th>会员信息</th>
                                <td>会员id</td>
                                <td>身份</td>
                                <td>下单时间</td>
                                <td>商品付款</td>
                                <td>运费付款</td>
                                <td>总付款</td>
                                <td>付款方式</td>
                                <td>订单状态</td>
                              </tr>
                              <?php foreach($users as $k=>$v){ ?>


                              
                              <tr>
                                <th></th>
                                <td>{$v['user_id']}</td>
                                <td><?php echo ($v['user_id']==$pint['user_id'])?'团长':'团员'; ?></td>
                                <td><?php echo date("y-m-d/H:i:s",$v['add_time']); ?></td>
                                <td>{$v['goods_price']}</td>
                                <td>{$v['shipping_price']}</td>
                                <td>{$v['total_amount']}</td>
                                <td>{$pay_status[$v['pay_status']]}</td>
                                <td><?php echo $order_status[$v['order_status']]; ?></td>
                              </tr>
                              <?php } ?>
                            </table>
                        </div>
                    </div>
			            </form>
                </div>
            </div>
        </div>    <!-- /.content -->
    </section>
</div>





</body>
</html>